//
//  AF_NameCell.m
//  yigou
//
//  Created by wangdianlei on 2017/1/10.
//  Copyright © 2017年 hanyiwang. All rights reserved.
//

#import "AF_NameCell.h"

#define textBackgroundColor [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1]

@implementation AF_NameCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.afname setBackgroundColor:textBackgroundColor];
    self.afname.returnKeyType = UIReturnKeyDone;
    [self.afname addTarget:self action:@selector(textFieldDidChange:)  forControlEvents:UIControlEventEditingChanged];
}

- (void)textFieldDidChange:(UITextField *)textField {
    [DataCenter sharedDataCenter].sxname = textField.text;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
